package com.liming.common.pojo.vo.order;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author liming
 * @date 2025/2/23
 */
@Data
@Schema(description = "订单信息VO")
public class OrderVO {

    @Schema(description = "订单ID")
    private Long id;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "下单用户ID")
    private Long userId;

    @Schema(description = "下单用户地址ID")
    private Long userAddressId;

    @Schema(description = "下单用户名称")
    private String username;

    @Schema(description = "优惠券ID")
    private Long couponId;

    @Schema(description = "优惠券名称")
    private String couponName;

    @Schema(description = "订单真实金额（使用优惠券后）")
    private BigDecimal realAmount;

    @Schema(description = "订单总金额")
    private BigDecimal totalAmount;

    @Schema(description = "用户订单备注信息（如送货时间要求等）")
    private String remark;

    @Schema(description = "是否为线下自提，0 表示否，1 表示是")
    private Integer pickup;

    @Schema(description = "关联的自提点 ID（若有）")
    private Long pickupPointId;

    @Schema(description = "自提点名称")
    private String pickupPointName;

    @Schema(description = "订单状态码，0-未支付, 1-已支付, 2-待发货, 3-已发货, 4-待自提, 5-已完成, 6-已取消")
    private Integer status;

    @Schema(description = "下单时间")
    private LocalDateTime createTime;
}
